/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2204 - Exception5
 * <p>Powered by webrx On 2022-09-16 14:44:13
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Exception5 {
    public static void main(String[] args) {
        Student st = new Student();



        try {
            int i = 2 / 3;
            st.setGender("男");
        } catch (ArithmeticException e) {
            System.out.println("0不能做分母");
        } catch (SexException e) {
            System.out.println(e.getMessage());
        } catch (Exception e) {
            System.out.println("程序未知错误");
        }

        st = null;

        System.gc();
    }
}
